<%@page import="kau.vo.Writing"%>
<%@page import="java.util.ArrayList"%>
<%@page import="kau.dao.WritingDAOImpl"%>
<%@page import="kau.dao.WritingDAOIF"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">





</head>



<body>
	<table>
		<tr width="520" height="149">
			<td colspan="2"><br> <img src="/nems/img/center_img.jpg"
				width="520" height="149"></td>
			<td rowspan="3" valign="middle">
				<table width="220" height="445" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td colspan="3"><img src="/nems/img/center-right_01.gif"
							width="220" height="26" alt=""></td>
					</tr>
					<tr>
						<td rowspan="6"><img src="/nems/img/center-right_02.gif"
							width="12" height="419" alt=""></td>
						<td><a
							href="http://conso.co.kr/contents/4_duty/duty02_12.html?sm=4_2"
							target="_blank"> <img src="/nems/img/center-right_03.gif"
								width="195" height="80" border="0" alt=""></a></td>
						<td rowspan="6"><img src="/nems/img/center-right_04.gif"
							width="13" height="419" alt=""></td>
					</tr>
					<tr>
						<td><a href="https://www.facebook.com/BigdataAcademy"
							target="_blank"> <img src="/nems/img/center-right_05.gif"
								width="195" height="83" border="0" alt=""></a></td>
					</tr>
					<tr>
						<td><a
							href="http://www.dbguide.net/bigacademy.db?cmd=bigdata"
							target="_blank"> <img src="/nems/img/center-right_06.gif"
								width="195" height="81" border="0" alt=""></a></td>
					</tr>
					<tr>
						<td><a href="http://www.dbguide.net/da.db?cmd=snb10_1"
							target="_blank"> <img src="/nems/img/center-right_07.gif"
								width="195" height="84" border="0" alt=""></a></td>
					</tr>
					<tr>
						<td><a href="http://www.dbstore.or.kr/dbplay/event/list.do"
							target="_blank"> <img src="/nems/img/center-right_08.gif"
								width="195" height="82" border="0" alt=""></a></td>
					</tr>
					<tr>
						<td><img src="/nems/img/center-right_09.gif" width="195"
							height="9" alt=""></td>
					</tr>
				</table>
			</td>
		</tr>

		<tr>
			<td valign="top" align="left"><br>
				<table width="260" height="151" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td colspan="7"><img src="/nems/img/center-left_01.gif"
							width="260" height="10" alt=""></td>
					</tr>
					<tr>
						<td colspan="2" rowspan="2"><img
							src="/nems/img/center-left_02.gif" width="28" height="31" alt=""></td>
						<td><img src="/nems/img/center-left_21.gif" width="110"
							height="17" alt=""></td>
						<td rowspan="2"><img src="/nems/img/center-left_04.gif"
							width="82" height="31" alt=""></td>
						<td colspan="2"><a href="/nems/list.writing?bNumber=1"><img src="/nems/img/center-left_05.gif"
							width="31" height="17" alt="" border="0"></a></td>
						<td rowspan="12"><img src="/nems/img/center-left_06.gif"
							width="9" height="140" alt=""></td>
					</tr>
					<tr>
						<td><img src="/nems/img/center-left_07.gif" width="110"
							height="14" alt=""></td>
						<td colspan="2"><img src="/nems/img/center-left_08.gif"
							width="31" height="14" alt=""></td>
					</tr>
					
					
					<% ArrayList<Writing> writingList = WritingDAOImpl.getInstance().getAllWritings(1); 
					
						int stringLength1[]=new int[5];
						
						for(int z=0;z<writingList.size();z++){
							
							if(z==5)break;
							if(writingList.get(z).getTitle().length()<=18){
								stringLength1[z]=writingList.get(z).getTitle().length();	
							}
							else{
								stringLength1[z]=19;
							}
						}
					%>
					
					<tr>
						<td rowspan="10"><img src="/nems/img/center-left_09.gif"
							width="21" height="109" alt=""></td>
						<td colspan="4" width="225" height="15" bgcolor="#fbfbfb"><font
							style="font-size: 12px; font-family: Verdana, Geneva, sans-serif; color: #d6d6d6">&nbsp;
								<%if(writingList.size()>=1) {%><a href="/nems/showWriting.writing?wNumber=<%=writingList.get(0).getwNumber()%>&bNumber=1" style="text-decoration: none;color: black;"><%=writingList.get(0).getTitle().substring(0, stringLength1[0])%><%} %>..</font></td>
						<td rowspan="10"><img src="/nems/img/center-left_11.gif"
							width="5" height="109" alt=""></td>
					</tr>
					<tr>
						<td colspan="4"><img src="/nems/img/center-left_12.gif"
							width="225" height="4" alt=""></td>
					</tr>
					<tr>
						<td colspan="4" width="225" height="17" bgcolor="#fbfbfb"><font
							style="font-size: 12px; font-family: Verdana, Geneva, sans-serif; color: #d6d6d6">&nbsp;
								<%if(writingList.size()>=2) {%>
								<a href="/nems/showWriting.writing?wNumber=<%=writingList.get(1).getwNumber()%>&bNumber=1" style="text-decoration: none; color: black;"><%=writingList.get(1).getTitle().substring(0, stringLength1[1]) %><%} %></font></td>
					</tr>
					<tr>
						<td colspan="4"><img src="/nems/img/center-left_14.gif"
							width="225" height="1" alt=""></td>
					</tr>
					<tr>
						<td colspan="4" width="225" height="18" bgcolor="#fbfbfb"><font
							style="font-size: 12px; font-family: Verdana, Geneva, sans-serif; color: #d6d6d6">&nbsp;
								<%if(writingList.size()>=3) {%>
								<a href="/nems/showWriting.writing?wNumber=<%=writingList.get(2).getwNumber()%>&bNumber=1" style="text-decoration: none; color: black;"><%=writingList.get(2).getTitle().substring(0, stringLength1[2]) %><%} %></font></td>
					</tr>
					<tr>
						<td colspan="4"><img src="/nems/img/center-left_16.gif"
							width="225" height="2" alt=""></td>
					</tr>
					<tr>
						<td colspan="4" width="225" height="18" bgcolor="#fbfbfb"><font
							style="font-size: 12px; font-family: Verdana, Geneva, sans-serif; color: #d6d6d6">&nbsp;
								<%if(writingList.size()>=4) {%>
								<a href="/nems/showWriting.writing?wNumber=<%=writingList.get(3).getwNumber()%>&bNumber=1" style="text-decoration: none;  color: black;"><%=writingList.get(3).getTitle().substring(0, stringLength1[3]) %><%} %></font></td>
					</tr>
					<tr>
						<td colspan="4"><img src="/nems/img/center-left_18.gif"
							width="225" height="2" alt=""></td>
					</tr>
					<tr>
						<td colspan="4" width="225" height="18" bgcolor="#fbfbfb"><font
							style="font-size: 12px; font-family: Verdana, Geneva, sans-serif; color: #d6d6d6">&nbsp;
								<%if(writingList.size()>=5) {%>
								<a href="/nems/showWriting.writing?wNumber=<%=writingList.get(4).getwNumber()%>&bNumber=1" style="text-decoration: none;color: black;"><%=writingList.get(4).getTitle().substring(0, stringLength1[4]) %><%} %></font></td>
					</tr>
					<tr>
						<td colspan="4"><img src="/nems/img/center-left_20.gif"
							width="225" height="14" alt=""></td>
					</tr>
					<tr>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="21" height="1" alt=""></td>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="7" height="1" alt=""></td>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="110" height="1" alt=""></td>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="82" height="1" alt=""></td>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="26" height="1" alt=""></td>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="5" height="1" alt=""></td>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="9" height="1" alt=""></td>
					</tr>
				</table></td>
			<td valign="top" align="left"><br>
					<table width="260" height="151" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td colspan="7"><img src="/nems/img/center-left_01.gif"
							width="260" height="10" alt=""></td>
					</tr>
					<tr>
						<td colspan="2" rowspan="2"><img
							src="/nems/img/center-left_02.gif" width="28" height="31" alt=""></td>
						<td><img src="/nems/img/center-left_22.gif" width="110"
							height="17" alt=""></td>
						<td rowspan="2"><img src="/nems/img/center-left_04.gif"
							width="82" height="31" alt=""></td>
						<td colspan="2"><a href="/nems/list.writing?bNumber=2"><img src="/nems/img/center-left_05.gif"
							width="31" height="17" alt="" border="0"></a></td>
						<td rowspan="12"><img src="/nems/img/center-left_06.gif"
							width="9" height="140" alt=""></td>
					</tr>
					<tr>
						<td><img src="/nems/img/center-left_07.gif" width="110"
							height="14" alt=""></td>
						<td colspan="2"><img src="/nems/img/center-left_08.gif"
							width="31" height="14" alt=""></td>
					</tr>
					
					
					<% writingList = WritingDAOImpl.getInstance().getAllWritings(2); 
					
						int stringLength2[]=new int[5];
						
						for(int z=0;z<writingList.size();z++){
							
							if(z==5)break;
							if(writingList.get(z).getTitle().length()<=18){
								stringLength2[z]=writingList.get(z).getTitle().length();	
							}
							else{
								stringLength2[z]=19;
							}
						}
					%>
					
					<tr>
						<td rowspan="10"><img src="/nems/img/center-left_09.gif"
							width="21" height="109" alt=""></td>
						<td colspan="4" width="225" height="15" bgcolor="#fbfbfb"><font
							style="font-size: 12px; font-family: Verdana, Geneva, sans-serif; color: #d6d6d6">&nbsp;
								<%if(writingList.size()>=1) {%><a href="/nems/showWriting.writing?wNumber=<%=writingList.get(0).getwNumber()%>&bNumber=2" style="text-decoration: none;color: black;"><%=writingList.get(0).getTitle().substring(0, stringLength2[0])%><%} %>..</font></td>
						<td rowspan="10"><img src="/nems/img/center-left_11.gif"
							width="5" height="109" alt=""></td>
					</tr>
					<tr>
						<td colspan="4"><img src="/nems/img/center-left_12.gif"
							width="225" height="4" alt=""></td>
					</tr>
					<tr>
						<td colspan="4" width="225" height="17" bgcolor="#fbfbfb"><font
							style="font-size: 12px; font-family: Verdana, Geneva, sans-serif; color: #d6d6d6">&nbsp;
								<%if(writingList.size()>=2) {%>
								<a href="/nems/showWriting.writing?wNumber=<%=writingList.get(1).getwNumber()%>&bNumber=2" style="text-decoration: none; color: black;"><%=writingList.get(1).getTitle().substring(0, stringLength2[1]) %><%} %></font></td>
					</tr>
					<tr>
						<td colspan="4"><img src="/nems/img/center-left_14.gif"
							width="225" height="1" alt=""></td>
					</tr>
					<tr>
						<td colspan="4" width="225" height="18" bgcolor="#fbfbfb"><font
							style="font-size: 12px; font-family: Verdana, Geneva, sans-serif; color: #d6d6d6">&nbsp;
								<%if(writingList.size()>=3) {%>
								<a href="/nems/showWriting.writing?wNumber=<%=writingList.get(2).getwNumber()%>&bNumber=2" style="text-decoration: none; color: black;"><%=writingList.get(2).getTitle().substring(0, stringLength2[2]) %><%} %></font></td>
					</tr>
					<tr>
						<td colspan="4"><img src="/nems/img/center-left_16.gif"
							width="225" height="2" alt=""></td>
					</tr>
					<tr>
						<td colspan="4" width="225" height="18" bgcolor="#fbfbfb"><font
							style="font-size: 12px; font-family: Verdana, Geneva, sans-serif; color: #d6d6d6">&nbsp;
								<%if(writingList.size()>=4) {%>
								<a href="/nems/showWriting.writing?wNumber=<%=writingList.get(3).getwNumber()%>&bNumber=2" style="text-decoration: none;  color: black;"><%=writingList.get(3).getTitle().substring(0, stringLength2[3]) %><%} %></font></td>
					</tr>
					<tr>
						<td colspan="4"><img src="/nems/img/center-left_18.gif"
							width="225" height="2" alt=""></td>
					</tr>
					<tr>
						<td colspan="4" width="225" height="18" bgcolor="#fbfbfb"><font
							style="font-size: 12px; font-family: Verdana, Geneva, sans-serif; color: #d6d6d6">&nbsp;
								<%if(writingList.size()>=5) {%>
								<a href="/nems/showWriting.writing?wNumber=<%=writingList.get(4).getwNumber()%>&bNumber=2" style="text-decoration: none;color: black;"><%=writingList.get(4).getTitle().substring(0, stringLength2[4]) %><%} %></font></td>
					</tr>
					<tr>
						<td colspan="4"><img src="/nems/img/center-left_20.gif"
							width="225" height="14" alt=""></td>
					</tr>
					<tr>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="21" height="1" alt=""></td>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="7" height="1" alt=""></td>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="110" height="1" alt=""></td>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="82" height="1" alt=""></td>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="26" height="1" alt=""></td>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="5" height="1" alt=""></td>
						<td><img src="/nems/img/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
							width="9" height="1" alt=""></td>
					</tr>
				</table>
			</td>

		</tr>
		<tr>
			<td valign="top"><br>
				<table width="260" height="70" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td colspan="9"><img src="/nems/img/center-down_01.gif"
							width="260" height="28" alt=""></td>
					</tr>
					<tr>
						<td rowspan="2"><img src="/nems/img/center-down_02.gif"
							width="22" height="42" alt=""></td>
						<td><a href="http://blog.naver.com/dbstory2009"
							target="_blank"> <img src="/nems/img/center-down_03.gif"
								width="48" height="29" border="0" alt=""></a></td>
						<td rowspan="2"><img src="/nems/img/center-down_04.gif"
							width="15" height="42" alt=""></td>
						<td><a href="http://blog.daum.net/dbdb" target="_blank">
								<img src="/nems/img/center-down_05.gif" width="34" height="29"
								border="0" alt="">
						</a></td>
						<td rowspan="2"><img src="/nems/img/center-down_06.gif"
							width="15" height="42" alt=""></td>
						<td><a href="http://twitter.com/dbstory2012" target="_blank">
								<img src="/nems/img/center-down_07.gif" width="56" height="29"
								border="0" alt="">
						</a></td>
						<td rowspan="2"><img src="/nems/img/center-down_08.gif"
							width="9" height="42" alt=""></td>
						<td><a href="http://www.facebook.com/dbdb2011"
							target="_blank"> <img src="/nems/img/center-down_09.gif"
								width="53" height="29" border="0" alt=""></a></td>
						<td rowspan="2"><img src="/nems/img/center-down_10.gif"
							width="8" height="42" alt=""></td>
					</tr>
					<tr>
						<td><img src="/nems/img/center-down_11.gif" width="48"
							height="13" alt=""></td>
						<td><img src="/nems/img/center-down_12.gif" width="34"
							height="13" alt=""></td>
						<td><img src="/nems/img/center-down_13.gif" width="56"
							height="13" alt=""></td>
						<td><img src="/nems/img/center-down_14.gif" width="53"
							height="13" alt=""></td>
					</tr>
				</table></td>
			<td valign="top"><br> <img src="/nems/img/center-down2.png"
				width="260" height="70"></td>	
		</tr>
	</table>
	<br>
	<br>
	<div align="left">
	<img src="/nems/img/center-down3.png">
	</div>
</body>
</html>